Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creation of custom image clusters and correctly handles upgrades … #2149

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

ryanemerson
Copy link
Contributor

No description provided.

Copy link
Collaborator

@rigazilla rigazilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems ok to me.
custom image is stable
I've tested successfully this upgrade case:
custom->custom->default

// as the server components are not changed.
customImage := i.Status.Operand.CustomImage
if !customImage && requestedOperand.CVE && installedOperand.UpstreamVersion.EQ(*requestedOperand.UpstreamVersion) {
// If the Operand is marked as a CVE base-image release and no custom image is installed/requested, then we perform the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm missing something here?
the comment says 'perform upgrade' but the return value is false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method returns true if a Graceful/HR Rolling upgrade is required. In this case we turn false, as the statefulset_updates.go handler will trigger a StatefulSet rolling upgrade instead.

@ryanemerson ryanemerson merged commit 2e57340 into infinispan:main Sep 13, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants